home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / knowhow4 / edcut.h < prev    next >
C/C++ Source or Header  |  1994-10-10  |  924b  |  34 lines

  1. #ifndef __RESTRICT_EDIT_H_
  2. #define __RESTRICT_EDIT_H_
  3.  
  4. #include "edwin.h"
  5.  
  6. class RestrictEdit : public EditWindow
  7.     {
  8.     protected:
  9.     int maxStringLen;       // maximum total bytes
  10.     int maxLines;           // maximum lines in string
  11.     int maxLineLen;         // maximum length of individual line
  12.  
  13.     public:
  14.     RestrictEdit(rect coordinates,
  15.           int s_len, int l_len, int n_lines,
  16.           char* fName = "", char* h = "",
  17.           int s = 6, int b_type = 1, int res = FIXED,
  18.           char* font = "hv08a.sfp", char* swaper = "work.swp",
  19.           const char* str = "", loc sc = loc(1, 1),
  20.           int interv = 15)
  21.          : EditWindow(coordinates, fName, h, s, b_type, res,
  22.           font, swaper, str, loc(1, 1), rect(0, 0, 0, 0),
  23.           sc, interv, HORIZ_DIR)
  24.           {
  25.           maxStringLen = s_len;
  26.           maxLines = n_lines;
  27.           maxLineLen = l_len;
  28.           }
  29.  
  30.     int printableChar(int key);
  31.  
  32.     };
  33.  
  34. #endif __RESTRICT_EDIT_H_